package com.seal.commons.quartz.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 功能描述: <br/>
 *
 * @author yong.huang
 * @date: 2020-10-28 16:00<br/>
 * @since JDK 1.8
 */
@ConfigurationProperties(prefix="spring.quartz.xxl-job" )
public class XxlJobProperties {

    /**
     * admin地址
     */
    private String adminAddress;

    /**
     * xxl job registry ip.
     */
    private String ip;
    /**
     * xxl job registry port.
     */
    private Integer port = -1;
    /**
     * xxl job admin registry access token.
     */
    private String accessToken;
    /**
     * xxl job log files path.
     */
    private String logPath ;
    /**
     * xxl job log files retention days.
     */
    private Integer logRetentionDays = 30;

    public String getAdminAddress() {
        return adminAddress;
    }

    public void setAdminAddress(String adminAddress) {
        this.adminAddress = adminAddress;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getLogPath() {
        return logPath;
    }

    public void setLogPath(String logPath) {
        this.logPath = logPath;
    }

    public Integer getLogRetentionDays() {
        return logRetentionDays;
    }

    public void setLogRetentionDays(Integer logRetentionDays) {
        this.logRetentionDays = logRetentionDays;
    }
}